
package com.hy.erp.inventory.pojo ;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.FetchType ;
import javax.persistence.ManyToOne ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
//import org.jboss.seam.annotations.Name ;

import com.hy.erp.inventory.dao.interfaces.INationDao;
import com.hy.erp.inventory.pojo.interfaces.INation;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
/**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-12；时间：上午11:38:57</li>
 * <li>类型名称：Nationalities</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
@ Entity 
@Table(name="t_nation")
/*@Name("nationalities")
@DaoA(INationalitiesDao.class)*/
//public class Nationalities extends AbstractPersistentEntity implements INationalities
public class Nation extends MyBaseModel //implements IPositonType
        
{
	private static final long	serialVersionUID	=
	                                                  214535802524946621L ;

	

	/**
	 * 构造函数
	 */
	public Nation ( )
	{
		super ( ) ;
	}

	

	
	@ Column ( name = "abbreviation" , length = 50)
	@ Index ( name = "abbreviationIndex" )
	public String getAbbreviation ( )
	{
	  return this.get(INation.ABBREVIATION) ;
	}

	public void setAbbreviation (
									String abbreviation )
	{
		super.set(INation.ABBREVIATION,abbreviation) ;
	}
	
	@ Column ( name = "description" , length = 50)
	@ Index ( name = "descriptionIndex" )
	public String getDescription ( )
	{
		return	this.get(INation.DESCRIPTION) ;
	}

	public void setDescription (
									String description )
	{
		super.set(INation.DESCRIPTION,description) ;
	}
	@ Column ( name = "name" , length = 50)
	@ Index ( name = "nameIndex" )
	public String getName ( )
	{
		return	this.get(INation.NAME) ;
	}

	public void setName (
							String name )
	{
		super.set(INation.NAME,name) ;
	}
	@ Column ( name = "namedCode" , length = 50)
	@ Index ( name = "namedCodeIndex" )
	public String getNamedCode ( )
	{
		return this.get(INation.NAMEDCODE) ;
	}

	public void setNamedCode (
								String namedCode )
	{
		super.set(INation.NAMEDCODE,namedCode) ;
	}
	
	/*@ManyToOne(targetEntity=Country.class,fetch=FetchType.LAZY)
	public Country getCountry ( )
	{
	return this.get(INationalities.COUNTRY) ;
	}

	public void setCountry (
								Country country )
	{
		super.set(INationalities.COUNTRY,country) ;
	}*/
	
	


}
